import backprop
import cantor

def code(grammar):

    # get parameters
    dim = cantor.calc_dim(grammar.alphabet)
    directions = cantor.calc_directions(grammar.alphabet, dim)


    # initialize population
    ## write code for that, grid-initialization
    ### make it capable of also doing complex nums

    # code stepwise (integrate with initialization)

    # in the end, use backprop when grid isn't successful any more
    # somehow think about species in a meaningful way.
